package com.njtoyo.taxi.admin.mapper.master.entity.local_service;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.njtoyo.taxi.admin.mapper.master.enums.local_service.LifeMemberCategory;
import com.njtoyo.taxi.admin.mapper.master.enums.local_service.LifeMemberState;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 会员表
 * </p>
 *
 * @author Dell
 * @since 2022-03-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "LifeMember对象", description = "会员表")
public class LifeMember implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户ID/司机ID")
    private Long refId;

    @ApiModelProperty(value = "会员类型 0:driver[司机],1:customer[用户]")
    private LifeMemberCategory category;

    @ApiModelProperty(value = "状态 0:inactive[未激活],1:active[激活],2:freeze_up[冻结]")
    private LifeMemberState state;

    @ApiModelProperty(value = "有效积分")
    private Integer point;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;


}
